import pygame

row = 12  # 这里是调整 横排多少个 的
col = 10  # 这里是调整  竖排多个个

time_ = 100  # 游戏时间
score_sep_ = 5  # 剩余1秒增加5分  每一关的分数会自动加上去
tick_ = 5  # 可以提示的次数
# 如果要替换音乐，在void文件下，覆盖原来文件， mp3格式，文件名要一致
pygame.mixer.init()
bg_sound = pygame.mixer.music.load('void/bgsound.mp3')


def load(url='picture/', name='', type='.png', width=None, height=None):
    tmp = pygame.image.load(url + str(name) + type)
    if width and height:
        return pygame.transform.scale(tmp, (width, height))
    else:
        return tmp


pic = {}
for i in range(20):
    try:
        pic[str(i)] = load(name=str(i), width=38, height=38)
    except:
        pass
fg = load(name='fg.', type='jpg')
bg = load(name='bg')
button = load(name='button')
top = load(name='top')
nogood = load(name='nogood', width=20, height=20)
good = load(name='good', width=20, height=20)
order = load(name='order')
success = load(name='success')
over = load(name='gameover')
sorry = load(name='baoqian')
false = load(name='false')
restart = load(name='restart', width=50, height=50)
number = {'一': 1, '二': 2, '三': 3, '四': 4, '五': 5, '六': 6}
